home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1996 #1
/
Amiga Plus CD - 1996 - No. 1.iso
/
pd
/
grafik
/
dust_v2.34
/
dusthelp2
/
for
< prev
next >
Wrap
Text File
|
1995-09-28
|
728b
|
32 lines
Loops
-----------------------------------------------------------------
Dust can perform nested FOR-loops, the loop-counter is equal to
the loop-variable of the innerst loop.
The loop-counter is the number inserted into a string containg
format-commands.
Syntax:
FOR(<loop-variable>,<from>,<to>[,<step>])
.
.
.
END
Example:
for(i,1,10)
echo("unformatted:$, formatted:%")
end
Contains a string format-commands so this commands will be replaced by
the recent value of the loop-counter.
$ - inserts the value unformatted
% - inserts the value formatted
Example:
A string "$. Objekt: obj.%" is changed into "23. Objekt: obj.0023" if
the loop-counter was 23.